# encoding: utf-8
__author__ = 'wwj'
import pymongo
from xvideores import down
client = pymongo.MongoClient("47.74.21.140",socketKeepAlive=True,maxPoolSize=400)
client.admin.authenticate("admin321", "dsf::6666,,<<", mechanism='SCRAM-SHA-1')
for x in client.xvideo.video.find({"status":{"$exists":False}},{"url":1},no_cursor_timeout=True).batch_size(13):
    print (x["url"])
    down.delay(x["url"])